import Course from './Course'
import Cart from './Cart'

import Observer from '../../utils/Observer'

export default class ShoppingCart {
  constructor() {
    this.oList = document.getElementsByClassName('J_list')[0]
    this.oCart = document.getElementsByClassName('J_cart')[0]
    this.observer = new Observer()
  }

  init () {
    new Course(this.oList,this.observer)
    new Cart(this.oCart,this.observer)
  }
}